package com.didi.gulimall.api;

import com.didi.gulimall.common.entity.LocalMqEntity;
import com.didi.gulimall.common.utils.R;
import com.didi.gulimall.order.vo.MemberOrderPointsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 10626
 */
@FeignClient("gulimall-member")
public interface MemberApiService {

    @GetMapping("member/address/get/{memberId}")
    R getMemberAddress(@PathVariable("memberId") Long memberId);

    @PostMapping("member/subject/points")
    R subjectPoint(@RequestBody List<MemberOrderPointsVo> memberOrderPointsVo);

    @PostMapping("localmq/savema")
    R saveLocalmq(LocalMqEntity localMqEntities);
}
